<template>
  <div>
    <el-button @click="openWindowIfAbsent">跳转新窗口</el-button>
    <el-button @click="openWindowIfAbsent">往新窗口追加参数</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    openWindowIfAbsent () {
      let timeStamp = new Date().getTime();
      window.open(`./NewWindow?param=传参测试&timeStamp=${timeStamp}`, `learnOpenWindow`);
    }
  }
}
</script>

<style>
</style>